package Copy;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class IO_21_ObjectInputStream {

	public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
		ObjectInputStream ois = new ObjectInputStream(new FileInputStream("./src/Copy/user"));

		Object object = ois.readObject();

		ois.close();
		User user = (User) object;
		user.m2();
		user.m3();
		System.out.println(user);
	}

}
